This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~John Destumitherakol 18.Nov.03 10:33 PM a Web browser Domino Server6.0.2Windows 2000
Please see this code then my comments after:
If dc.count > 0 Then
For docs = 1 To dc.count
If docs = 1 Then
Set DeleteDoc1= dc.getfirstdocument
Else
Set DeleteDoc1= dc.getnextdocument(DeleteDoc1)
End If
Call DeleteDoc1.Remove(True)
Next
End If
This code snippet is from a lotus agent that is running on the web. The app I am building is strickly for web users. The problem I am having is that I cannot delete documents from my view using the remove method.
Some background info:
I have a shopping cart page with the cart items listed. Each item has a checkbox next to it. If someone checks the box I use javascript location.href to call an openagent that first parses out the name/value pairs I pass to it. Then using those values it creates a document collection and finds the document that needs to be removed. **** note** I am able to get the values of fields from that document so I know I have the right document. Then I simply use the code above to try and delete the document from the view with no luck. The view remains unchanged after I run this. Any suggestions?? I am willing to try any other way as long as it works for the web.